package cn.gson.springboot.model.pjos;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * 审批记录表
 */
@Entity
@Table(name = "check_details", schema = "springboot", catalog = "")
public class CheckDetails {
    private int apprsId;           //审批详细id
    private Integer apprId;        //审批id
    private String apprView;	   //审批意见
    private Timestamp apprsDate;   //时间
    private Emp empByEmployeesId;  //审批人
    private CucheckType cucheckTypeByCutId;

    public CheckDetails() {

    }

    @Id
    @Column(name = "apprs_id")
    public int getApprsId() {
        return apprsId;
    }

    public void setApprsId(int apprsId) {
        this.apprsId = apprsId;
    }

    @Basic
    @Column(name = "appr_id")
    public Integer getApprId() {
        return apprId;
    }

    public void setApprId(Integer apprId) {
        this.apprId = apprId;
    }

    @Basic
    @Column(name = "appr_view")
    public String getApprView() {
        return apprView;
    }

    public void setApprView(String apprView) {
        this.apprView = apprView;
    }

    @Basic
    @Column(name = "apprs_date")
    public Timestamp getApprsDate() {
        return apprsDate;
    }

    public void setApprsDate(Timestamp apprsDate) {
        this.apprsDate = apprsDate;
    }

    @ManyToOne
    @JoinColumn(name = "appr_empid", referencedColumnName = "employees_id")
    public Emp getEmpByEmployeesId() {
        return empByEmployeesId;
    }

    public void setEmpByEmployeesId(Emp empByEmployeesId) {
        this.empByEmployeesId = empByEmployeesId;
    }

    @ManyToOne
    @JoinColumn(name = "cut_id", referencedColumnName = "cut_id")
    public CucheckType getCucheckTypeByCutId() {
        return cucheckTypeByCutId;
    }

    public void setCucheckTypeByCutId(CucheckType cucheckTypeByCutId) {
        this.cucheckTypeByCutId = cucheckTypeByCutId;
    }
}
